﻿using System;
namespace JuCloudy.Data.Nhibernate
{
    public interface IRsaContainer
    {
        string Decrypt(Guid RsaId, string Content);
        string DecryptByRsaId(Guid RsaId);
        void Encrypt(Guid RsaId, string PublicKey, string Content, string IpAddress);
        Guid GeneralKey(string IpAddress, out string PublicKey);
        string GetRsaContent(Guid RsaId);
        string GetRsaKey(Guid RsaId, bool OnlyPub);
    }
}
